package com.lq.ecoldchain.ui.mine.user.paypassword

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.lq.ecoldchain.R
import com.lq.ecoldchain.base.BaseNavigator
import com.lq.ecoldchain.base.view.BaseActivity
import com.lq.ecoldchain.databinding.ActivityPayPasswordBinding
import org.kodein.di.Kodein
import org.kodein.di.generic.instance

/*
*2019/1/5 0005  11:37
*function by lq
*/
@Route(path = BaseNavigator.payPassword)
class PayPasswordActivity : BaseActivity<ActivityPayPasswordBinding>() {
    @Autowired
    @JvmField
    var phone: String? = ""

    override val kodein = Kodein.lazy {
        extend(parentKodein)
        import(payPasswordKodeinModule)
    }
    override val layoutId = R.layout.activity_pay_password
    override val viewDelegate: PayPasswordDelegate by instance()

    override fun initView() {
        titleText("修改支付密码")
        ARouter.getInstance().inject(this)
        binding.delegate = viewDelegate
        viewDelegate.viewModel.payPhone.value = phone
    }

}